<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <base href="<?php echo (C("BASE")); ?>">
    <link rel="stylesheet" type="text/css" href="ui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="css/icon.css">  
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <script type="text/javascript" src="ui/jquery.min.js"></script>     
    <script type="text/javascript" src="ui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="ui/locale/easyui-lang-zh_CN.js"></script> 
    <script src='layer/layer.js'></script>   
    <title>后台管理</title>     
</head>
<body>

<!-- 新增产品 -->

<form method="post" enctype="multipart/form-data">

<div><label>类别</label>
	<select class="easyui-combobox" name="pid" style="width:150px;">
		
			<?php if(is_array($category)): foreach($category as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>"><?php echo ($v["title"]); ?></option><?php endforeach; endif; ?>
	</select>
</div>
<div>
	<label>属性名称</label>
	<input type="text" name="title" class="easyui-textbox" style="width:150px;"/>
</div>
<div>
	<label>是否是购买属性</label>
	<input  class="easyui-switchbutton" name="isbuy" data-options="onText:'是',offText:'否'" value="1"/>
</div>
<div>
	<label>选项</label>
	<input  class="easyui-textbox" name="options" style="width:150px;" />多个选项用|线隔开
</div>

<p class="err"><?php echo ($errstr); ?></p>
<input type="submit" value="提交" class="easyui-linkbutton" data-options="width:'70'"/>
</form>



</body>
</html>